
	var a =0;
	/*
	//点击保存 弹出提示框
	$("#lds_endbutton").click(function(){
		$("#lds_succed").css("display","block");
		location.href = "#lds_x";
		window.location.hash = "lds_x";
		
		
	});
	
	//点击X 提示框隐藏
	$("#lds_x").click(function(){
		$("#lds_succed").css("display","none");
		a = 1;
		if(a ==1) {
			$("#lds_endbutton").get(0).setAttribute("type","submit");
		}
	});

	//点击添加手机号弹出输入框
	$("#lds_button").click(function(){
		$("#lds_button").css("display","none");
		$("#lds_div").css("display","block");
	});
	*/

	//更改原来头像图片信息
	$('#lds_file').on('change',function(){
			//获取原来的img src 
			
	    	var filePath = $(this).val(),         //获取到input的value，里面是文件的路径
	    		fileFormat = filePath.substring(filePath.lastIndexOf(".")).toLowerCase(),
	    		src = window.URL.createObjectURL(this.files[0]); //转成可以在本地预览的格式
	    	// 检查是否是图片
	    	if( !fileFormat.match(/.png|.jpg|.jpeg/) ) {
	    		error_prompt_alert('上传错误,文件格式必须为：png/jpg/jpeg');
	        	return;  
	       }
	        $('#lds_img').attr('src',src);
	        $('#lds_img1').attr('src',src);
	       
		});


	$("#lds_ebutton").click(function(){
		window.location.href="index.html";
	});

	$("#lds_link2chunk").click(function(){
		window.location.href="index.html";
	});
	
	$(".lds_wu").click(function(){
		alert("数据库中没有这个表！");
	});
	onmouseover
	//判断头像背景图片，显示垃圾桶
	$("#lds_lajitong").hover().css("cursor","pointer");
	$("#lds_touxiang").mouseover(function(){
		var p = "img/aibiying.png";
		var img = $("#lds_img").find("img").attr("src");//获得相对路径 
		if (img != p) {
			$("#lds_lajitong").css("display","block").click(function(){
				var q = "img/aibiying.png" ;
				$("#lds_img").attr('src',q);
				$("#lds_img1").attr('src',q);
			});
		
		}
	}).mouseout(function(){
		$("#lds_lajitong").css("display","none");
	});
	
	
	

